package com.turtle3d.gui;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class Turtle3DLayoutPanel extends JPanel{
	private JPanel drawingPanel;
	private JPanel toolbarPanel;
	private JPanel consolePanel;

	public void initGUI() {
		try {		
			{
				GridBagLayout thisLayout = new GridBagLayout();
				thisLayout.rowWeights = new double[] {0.1, 0.1, 0.0};
				thisLayout.rowHeights = new int[] {7, 7, 7};
				thisLayout.columnWeights = new double[] {1.0, 0.0};
				thisLayout.columnWidths = new int[] {7, 7};
				this.setLayout(thisLayout);
				this.setPreferredSize(new java.awt.Dimension(624, 421));
				{
					//drawingPanel = new JPanel();
					this.add(drawingPanel, new GridBagConstraints(0, 0, 1, 2, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
				}
				{
					//toolbarPanel = new JPanel();
					this.add(toolbarPanel, new GridBagConstraints(1, 0, 1, 3, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
					toolbarPanel.setPreferredSize(new java.awt.Dimension(260, 320));
					toolbarPanel.setMinimumSize(new java.awt.Dimension(200, 300));
				}
				{
					//consolePanel = new JPanel();
					this.add(consolePanel, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
					consolePanel.setPreferredSize(new java.awt.Dimension(10, 160));
					consolePanel.setMinimumSize(new java.awt.Dimension(300, 160));
				}				
			}		
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public JPanel getConsolePanel() {
		return consolePanel;
	}

	public void setConsolePanel(JPanel consolePanel) {
		this.consolePanel = consolePanel;
	}

	public JPanel getDrawingPanel() {
		return drawingPanel;
	}

	public void setDrawingPanel(JPanel drawingPanel) {
		this.drawingPanel = drawingPanel;
	}

	public JPanel getToolbarPanel() {
		return toolbarPanel;
	}

	public void setToolbarPanel(JPanel toolbarPanel) {
		this.toolbarPanel = toolbarPanel;
	}

}
